package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-10
 * Time: 13:00
 */
public class Exit implements Ioperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统");
        for (int i = 0; i < bookList.getUsedSize(); i++) {
            bookList.setBook(i, null);
        }

        System.exit(0);
    }
}
